<?php

namespace App\Http\Controllers;

use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Routing\Controller as BaseController;

class Controller extends BaseController
{
    use AuthorizesRequests, DispatchesJobs, ValidatesRequests;

    /**
     * 公用返回函数
     *
     * @param $code
     * @param $msg
     * @return array
     */
    public function res_msg($code, $msg)
    {
        return [
          'code' => $code,
          'msg'  => $msg
        ];
    }
}
